<?php
/**
 * Created by PhpStorm.
 * User: chengchaogui
 * Date: 2017/8/14
 * Time: 11:21
 */

namespace App\Framework\Enum;


class ActivityStatusEnum
{
    //已发布
    const PUBLISHED = 1;
    //待发布
    const WAIT_PUBLISH = 2;

    public static $dataMap = [
        self::PUBLISHED => '已发布',
        self::WAIT_PUBLISH => '未发布'
    ];

    public static function getName($key)
    {
        if (array_key_exists($key, self::$dataMap)) {
            return self::$dataMap[$key];
        }

        return '';
    }
}